package cn.shuto.liferay.plugin.chart.service.model.impl;

import cn.shuto.liferay.plugin.chart.service.model.DataSourceCfg;
import cn.shuto.liferay.plugin.chart.service.service.DataSourceCfgLocalServiceUtil;

import com.liferay.portal.kernel.exception.SystemException;

/**
 * The extended model base implementation for the DataSourceCfg service. Represents a row in the &quot;echarts_DataSourceCfg&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link DataSourceCfgImpl}.
 * </p>
 *
 * @author shixw
 * @see DataSourceCfgImpl
 * @see cn.shuto.liferay.plugin.chart.service.model.DataSourceCfg
 * @generated
 */
public abstract class DataSourceCfgBaseImpl extends DataSourceCfgModelImpl
    implements DataSourceCfg {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. All methods that expect a data source cfg model instance should use the {@link DataSourceCfg} interface instead.
     */
    @Override
    public void persist() throws SystemException {
        if (this.isNew()) {
            DataSourceCfgLocalServiceUtil.addDataSourceCfg(this);
        } else {
            DataSourceCfgLocalServiceUtil.updateDataSourceCfg(this);
        }
    }
}
